function clickHandler()
{
    var element = $(this);
    if ( element.attr("class") != "selected" )
    {
        $("ul.faq_questions_list li").removeClass("selected");
        element.removeClass("hover");
        element.addClass("selected");
    }
    else
    {
        element.removeClass("selected");
        element.addClass("hover");
    }
}

function mouseoverHandler()
{
    var element = $(this);
    if ( element.attr("class") != "selected" )
        element.addClass("hover");
}

function mouseoutHandler()
{
    $(this).removeClass("hover");
}

$(document).ready(function(){
    $("ul.faq_questions_list li").click( clickHandler );
    $("ul.faq_questions_list li").mouseover( mouseoverHandler );
    $("ul.faq_questions_list li").mouseout( mouseoutHandler );
});
